﻿<Window x:Class="WpfAppCap1_L3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
         <!--<Setter Property="Background" Value="Black" />-->
   
    <Window.Resources>
        <Style x:Key="aaa">
            <Setter Property="Control.Background" Value="Blue" />
        </Style>
        <Style TargetType="TextBox" BasedOn="{StaticResource aaa}">
            <Setter Property="Foreground" Value="White" />
            <Setter Property="BorderBrush" Value="White" />
            <Setter Property="Width" Value="135" />
            <Setter Property="Height" Value="30" />
            <Setter Property="Text" Value="qqqqqq" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="FontSize" Value="20" />
                </Trigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="bbb" TargetType="TextBlock">
            <Setter Property="TextBlock.Background" Value="Azure" />
        </Style>

        <Style TargetType="Label">
            <Setter Property="Background" Value="Black" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="Width" Value="135" />
            <Setter Property="Height" Value="33" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="FontSize" Value="20" />
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="Button">
            <Setter Property="Background" Value="Black" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="Width" Value="135" />
            <Setter Property="Height" Value="30" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="FontSize" Value="20" />
                </Trigger>
            </Style.Triggers>
        </Style>

        <Style TargetType="TextBlock">
            <Setter Property="Text" Value="Hello" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Text" Value="World" />
                </Trigger>
                <Trigger Property="IsMouseOver" Value="False">
                    <Setter Property="Text" Value="How are you?" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    
    <Grid>
        <Label Margin="26,62,126,0" VerticalAlignment="Top">High-Contrast Label</Label>
        <TextBox Margin="134,142,234,139">High-Contrast TextBox</TextBox>
        <TextBlock Margin="300,142,152,151">One TextBlock</TextBlock>
        <Button Margin="26,0,126,62" Background="Green" VerticalAlignment="Bottom">High-Contrast Button</Button>
        <TextBlock Margin="25,255,415,24">Another TextBlock</TextBlock>
    </Grid>


    <!--<Window.Resources>
        <Style TargetType="Button">
            <Setter Property="Content" Value="Hello" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Content" Value="World" />
                </Trigger>
                <Trigger Property="IsMouseOver" Value="False">
                    <Setter Property="Content" Value="How are you?" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <Button Height="23" Margin="81,0,122,58" Name="Button1" VerticalAlignment="Bottom">Button</Button>
    </Grid>-->

</Window>
